{{define "Title"}}{{.station | html}}{{end}}
{{define "Content"}}
<style type="text/css">
  #result2 { color: blue; }
</style>

<script type=text/javascript src="/js/enterKey.js"></script>
<script type=text/javascript src="/js/datefmt.js"></script>
<script type=text/javascript src="/js/scanparts.js"></script>

<div class="container-fluid">
<form class="form-horizontal">
  <fieldset>
    <legend><b>组件扫描</b></legend>
    <div class="control-group" style="margin-bottom:1px">
      <label class="control-label">工单&nbsp;</label>
      <div class="control">
        <label class="control-label" id="wono" name="wono" style="font-weight: bold; font-size: 16px; text-align:left; padding-left:10px;">{{.wono | html}}</label>
      </div>
    </div>
    <div class="control-group" style="margin-bottom:1px">
      <label class="control-label">物料&nbsp;</label>
      <div class="control">
        <label class="control-label" id="item" name="item" style="font-weight: bold; font-size: 16px; text-align:left; padding-left:10px;">{{.item | html}}</label>
      </div>
    </div>
    <div class="control-group" style="margin-bottom:1px">
      <label class="control-label">描述&nbsp;</label>
      <div class="control">
        <label class="control-label" id="desc" name="desc" style="font-weight: bold; font-size: 16px; text-align:left; padding-left:10px; width:auto;">{{.desc | html}}</label>
      </div>
    </div>
    <div class="control-group" style="margin-bottom:1px">
      <label class="control-label">站点&nbsp;</label>
      <div class="control">
        <label class="control-label" id="station" name="station" style="font-weight: bold; font-size: 16px; text-align:left; padding-left:10px; width:auto;">{{.station | html}}</label>
      </div>
    </div>
    <div class="control-group" style="margin-bottom:1px">
      <label class="control-label">线别&nbsp;</label>
      <div class="control">
        <label class="control-label" id="line" name="line" style="font-weight: bold; font-size: 16px; text-align:left; padding-left:10px;">{{.line | html}}</label>
      </div>
    </div>
    <div class="control-group" style="margin-bottom:1px">
      <label class="control-label">已过站数量&nbsp;</label>
      <div class="control">
        <label class="control-label" id="passqty" name="passqty" style="font-weight: bold; font-size: 30px; color: blue; text-align:left; padding-left:10px;">{{.passedqty | html}}</label>
      </div>
    </div>
  </fieldset>
</form>
</div>

<span id=result style="font-size: 16px;"></span><span id=result2 style="font-size: 16px;"></span>
<br/>
<br/>
<label style="font-size: 14px;"><b>不良代码</b></label><select id="failcode" name="failcode" onkeydown="clicka();" onmousewheel="return false">
  <option value="">
  {{range .failcodes}}
    <option value="{{.Code | html}}">{{.Code | html}} | {{.Desc | html}}
  {{end}}
</select>
<label style="font-weight: bold;font-size: 14px;">产品序号</label><input type=text id="ssn" name="ssn" class="input-xlarge" style="font-weight: bold; text-transform:uppercase; background-color: #FFFFD0;" onkeydown="clicka();" maxlength="50"> <b style="color: red">*</b>
{{range .parts_m}}
  <label style="font-size: 14px;"><b>{{.Name | html}}:&nbsp;{{.Desc | html}}</b></label><input type=text id="part{{.Index | html}}" name="part{{.Index | html}}" class="input-xlarge" style="font-weight: bold; background-color: #FFFFD0;" onkeydown="clicka();" maxlength="50"> <b style="color: red">*</b>
{{end}}
<label style="font-size: 14px;"><b>{{.parts_f.Name | html}}:&nbsp;{{.parts_f.Desc | html}}</b></label><input type=text id="part{{.parts_f.Index | html}}" name="part{{.parts_f.Index | html}}" class="input-xlarge" style="font-weight: bold; background-color: #FFFFD0;" onkeydown="txtKeyDown();" maxlength="50"> <b style="color: red">*</b>

<input type=button id="partscan" value="Parts Scan" style="display:none">

<br/>
<textarea id="flowdetail" value="" style="background:transparent;border-style:none;color:blue;width:800px;height:200px;leading:100;line-height:1.5;overflow-y:hidden;" readonly></textarea>

{{end}}